﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace TD.TheGame
{
    class Level9 : Level
    {
        EnemySprite[] zombies = new Zombie[30];

        public Level9(Game g)
            : base(g)
        {
            for (int i = 0; i < zombies.Length; i++)
            {

                EnemySprite zombieSample1 = new Zombie(game,
                   new Vector2(game.Window.ClientBounds.Width, game.Window.ClientBounds.Height - random.Next(6, 14) * yDifference),
                   false,
                   400, SpriteEnumState.Normal,1);
                zombieSample1.Damage = 50;
                zombieSample1.Speed = 1;
                zombieSample1.Health = 75;
                zombies[i] = zombieSample1;
            }
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void addToList()
        {
            foreach (var zombie in zombies)
            {
                Enemys.Add(zombie);
            }
        }
    }
}
